package com.schoolvisitors.context;

import com.schoolvisitors.entity.Admin;
import com.schoolvisitors.entity.User;

public class AdminContext {
    private static final ThreadLocal<Admin> data = new ThreadLocal<>();

    public static void set(Admin setData) {
        data.set(setData);
    }
    public static Admin get() {
        return data.get();
    }
    public static void clear() {
        data.remove();
    }
}
